﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="Hienthitintuc.aspx.cs" Inherits="admin_Hienthitintuc" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <table style="width:100%;">
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="MaTinTuc" 
                    DataSourceID="SqlDataSource1" Height="269px" Width="567px">
                    <Columns>
                        <asp:BoundField DataField="MaTinTuc" HeaderText="Mã Tin Tức" 
                            InsertVisible="False" ReadOnly="True" SortExpression="MaTinTuc" />
                        <asp:BoundField DataField="TieuDe" HeaderText="Tiêu đề" 
                            SortExpression="TieuDe" />
                        <asp:BoundField DataField="MoTa" HeaderText="Mô Tả" SortExpression="MoTa" />
                        <asp:BoundField DataField="ChiTiet" HeaderText="Chi Tiết" 
                            SortExpression="ChiTiet" />
                        <asp:BoundField DataField="Ngaydang" FooterText="Ngày Đăng" 
                            HeaderText="Ngaydang" SortExpression="Ngaydang" />
                        <asp:BoundField DataField="HinhAnh" HeaderText="Hình ảnh" 
                            SortExpression="HinhAnh" />
                    </Columns>
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:maytinhxachtayConnectionString %>" 
                    SelectCommand="SELECT [HinhAnh], [Ngaydang], [ChiTiet], [MoTa], [TieuDe], [MaTinTuc] FROM [TinTuc]">
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </form>
</asp:Content>

